package com.kuang.demo01;

import java.util.concurrent.TimeUnit;

/**
 * @program: juc
 * @description:
 * @author: 陈恩涛
 * @create: 2021-01-27 17:57
 **/
public class Test1 {
    public static void main(String[] args) throws InterruptedException {
        // 获取CPU核数
        // CPU 密集型，IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());

        TimeUnit.DAYS.sleep(1);
    }
}
